//
//  AsyncSocketManager+RAC.h
//  高仿暴走斗图
//
//  Created by key on 16/4/1.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import "AsyncSocketManager.h"

@interface AsyncSocketManager (RAC)

/**
 *  socket链接成功
 *
 *  @return 链接成功信号
 */
- (RACSignal *)rac_didConnectToHostForSocket:(AsyncSocket *)socket;

/**
 *  socket断开后
 *
 *  @return 断开后的信号
 */
- (RACSignal *)rac_onSocketDidDisconnectForSocket:(AsyncSocket *)socket;

/**
 *  socket将要断开
 *
 *  @return 将要断开的信号
 */
- (RACSignal *)rac_willDisconnectForSocket:(AsyncSocket *)socket;

/**
 *  socket读取数据成功后
 *
 *  @return 读取的数据信号
 */
- (RACSignal *)rac_didReadDataForSocket:(AsyncSocket *)socket;

/**
 *  socket写入数据后
 *
 *  @return 写入数据后的信号
 */
- (RACSignal *)rac_didWriteDataForSocket:(AsyncSocket *)socket;

@end
